607ff84c0e3173c790cb43650edf92f16cd6fe66,hazelcast/src/main/java/com/hazelcast/map/operation/InvalidateNearCacheOperation.java,InvalidateNearCacheOperation,run,#,43

Before Change



    public void run() {
        mapService = (MapService) getService();
        mapService.invalidateNearCache(mapName, key);
    }

    @Override

After Change



    public void run() {
        mapService = (MapService) getService();
        if (mapService.getMapContainer(mapName).isNearCacheEnabled()) {
            mapService.invalidateNearCache(mapName, key);
        } else {
            getLogger().warning("Cache clear operation has been accepted while near cache is not enabled for " + mapName + " map. Possible configuration conflict among nodes.");
        }
    }